import React,{Component,PropTypes} from 'react'
import styles from './tip.scss'

class Tip extends Component{
    componentDidMount(){

    }
    componentWillUnmount(){

    }
    render(){
        return(
            <div className="tip-wrapper">
                <div className="tip-box">
                    { this.props.message || '提示' }
                </div>
            </div>
        )
    }
}

Tip.protoTypes = {
    message:PropTypes.string.isRequire
}

export default Tip;
